opposite case in python

32

# Python program to demonstrate the use of
# swapcase() method  
  
string = "gEEksFORgeeks"
  
# prints after swappong all cases
print(string.swapcase())   
  
string = "striver" 
print(string.swapcase())
# Python program to demonstrate the use of
# swapcase() method  
  
string = "gEEksFORgeeks"
  
# prints after swappong all cases
print(string.swapcase())   
  
string = "striver" 
print(string.swapcase())

Comments

Submit
0 Comments